﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace IQKS.AWP.DataAccessLayer
{
   public class CandidateDataDAL
    {
        public DataSet GetCandiadateDataDAL(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = DataUtils.ExecuteDataset("USP_CandidateSearch", param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }


        

        public DataSet GetActivityEmailTemplateNameBindDAL(params object[] param)
        {
            try
            {
                return DataUtils.ExecuteDataset("USP_GetActivityEmailTemplateName", param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        public DataSet GetCandiadateAccrediationCertficateDetails(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = DataUtils.ExecuteDataset("USP_GetAwardedCandidate", param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }
    }
}
